package com.Object01.homework.homework05;

public class Student extends Person {
    private String stu_id;

    public Student(String name, String sex, int age, String stu_id) {
        super(name, sex, age);
        this.stu_id = stu_id;
    }

    public String getStu_id() {
        return stu_id;
    }

    public void setStu_id(String stu_id) {
        this.stu_id = stu_id;
    }
    public void study(){
        System.out.println(getName()+"：我承诺，，，");
    }
    public void play(){
        System.out.println(getName()+"爱玩足球");
    }


    public void aVoid() {
        System.out.println("学生信息:\n"+super.toString()+
                "学号:" + stu_id);
        study();
        play();
        System.out.println("---------------");
    }
}
